import * as types from '../constants/actionTypes';
import initialState from '../../reducers/initialState';

export default function(state=initialState.address, action)
{
    switch(action.type){
        case types.HISTROY_CHANGE:
            return Object.assign({},state,{history_list: action.history_list});
        case types.STROE_CHANGE:
            return Object.assign({},state,{store_list: action.store_list});
        default:
            return state;
    }
}
